var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var CommentSchema = new Schema({
	_creator : { type: Schema.Types.ObjectId, ref: 'User' },
    _post    : { type: Schema.Types.ObjectId, ref: 'GamePost' },
    _parent  : { type: Schema.Types.ObjectId, ref: 'Comment' },
    slug     : String,
    full_slug: String,
    type     : String,
    title	 : String,
    content  : String,
    posted   : { type : Date, default: Date.now }
});

module.exports = mongoose.model('Comment', CommentSchema);